package cn.humaohua.study.yanmo_design_pattern.ch14.v2;

public class SalaryManager {
    private PayModel[] pms = null;

    public PayModel[] getPays() {
        return pms;
    }

    public void calcSalary() {
        PayModel pm1 = new PayModel();
        pm1.setPay(2200);
        pm1.setUserName("wang5");

        PayModel pm2 = new PayModel();
        pm2.setPay(3600);
        pm2.setUserName("zhang6");

        pms = new PayModel[2];
        pms[0] = pm1;
        pms[1] = pm2;
    }
}
